<table class='table table-striped'>
  <thead>
    <tr>
      <th><%= User.human_attribute_name(:id) %></th>
      <th><%= User.human_attribute_name(:name) %></th>
      <% if friendship_requests %>
        <th></th>
      <% end %>
    </tr>
  </thead>
  <tbody>
    <% if friendship_requests %>
      <%= render :partial => 'friendships/request', :collection => users %>
    <% else %>
      <%= render :partial => 'friendships/item', :collection => users %>
    <% end %>
  </tbody>
</table>

